package jfox.platform.common;

import jfox.platform.infrastructure.EntityObject;

/**
 * @author <a href="mailto:yang_y@sysnet.com.cn">Young Yang</a>
 */
public class Constants {

    private static final Constants me = new Constants();

    public static final Object NULL = null;
    public static final String EMPTY_STRING = "";

    /**
     * 最大日期
     */
    public static final long MAX_LONG_DATE = 21000101000000L;
    /**
     * 最小日期
     */
    public static final long MIN_LONG_DATE = 20000101000000L;

    /**
     * VSTATUS 定义
     */
    public static final int VSTATUS_NORMAL = EntityObject.VSTATUS_NORMAL;
    public static final int VSTATUS_DISABLED = EntityObject.VSTATUS_DISABLED;
    public static final int VSTATUS_REMOVED = EntityObject.VSTATUS_REMOVED;

    public static final String ADMINISTRATOR_NAME = "Administrator";
    public static final String GUEST_NAME = "GUEST";
    public static final String UNKOWN_NAME = "UNKOWN";

    public static final String SESSION_USER_KEY = "__USER_CONTEXT__"; 

    private Constants() {

    }

    public static Constants getInstance() {
        return me;
    }

    public static void main(String[] args) {

    }
}
